<p><?= $this->App->buttonLink('+ Novi Korisnik', '/users/create') ?></p>

<?= $this->element('entity_table', array(
    'columns' => array(
        'Id'      => 'User.id',
        'Ime'     => 'User.name',
        'E-Mail'  => 'User.email',
        'Klijent' => 'Client.name'
    ),
    'columnWidth' => array(
        'Id'     => '1%',
        'Ime'    => '30%',
        'E-Mail' => '20%'
    ),
    'links'    => array(
        'Ime'  => array('/users/edit/%d', 'User.id')
    ),
    'filter' => array(
        'Ime'     => ''.@$filter['User']['name'],
        'E-Mail'  => ''.@$filter['User']['email'],
        'Klijent' => ''.@$filter['Client']['name'],
    ),
    'data'     => $users,
    'id'       => 'User.id',
    'entity'   => 'users',
    'sort_by'  => $sort_by,
    'sort_dir' => $sort_dir
)) ?>
